const state = () => {
  return {
    flowQueryData: {},
    // 是否已经展示弹框预警  0 未展示 1 已展示
    showFlowAlert: 0,
    // code:  0 已开户 1000 查询中 1001 未开户 1002 开户中 1003 开户失败
    accStatus: 1000,
    dateType: "",
    keepLiveArr: [
      "Registers",
      "cancelStatement",
      "surperInvitorsOrderList",
      "register",
      "subRegister",
      'activityApply'
    ],
  };
};

const mutations = {
  setFlowQueryData(state, data) {
    state.flowQueryData = data;
  },
  setBusinessId(state, businessId) {
    state.businessId = businessId;
  },
  setFlowAlert(state, data) {
    state.showFlowAlert = data;
  },
  setAccStatus(state, code) {
    state.accStatus = code;
  },
  setSateType(state, type) {
    state.dateType = type;
  },
  setKeepLive(state, list) {
    state.keepLiveArr = list;
  },
};

const actions = {};

export default {
  namespace: true,
  state,
  mutations,
  actions,
};
